package com.test.client;

import com.wts.client.WtsAuthClient;
import com.wts.client.utils.WtcJsonMap;

public class WpClientTestPost {
	public static void main(String[] args) {
		WtsAuthClient client = new WtsAuthClient("http://127.0.0.1:8080/wlp", "	F59BD65F7EDAFB087A81D4DCA06C4910",
				"apiUser", "111111", "/api");
		System.out.println(client.isLive(true));
		// 添加
		// client.creatRemotePost("test2", null, "测试岗位2", "2");
//		// 修改
		// client.editRemotePost("test2", "测试岗位3", "2");
//		// 查询1
		WtcJsonMap node = client.getRemotePost("test2");
		System.out.println(node.getString("sourceid") + node.getString("name"));
////		// 绑定人员
		client.bindRemotePost("test2", "test", "sysadmin");
//		// 删除
		client.delRemotePost(node.getString("sourceid"));
//		// 查询2
	}
}
